package heima3_2.cn.osc.hold;

import android.content.Context;
import android.view.View;
import android.view.ViewGroup;
import android.widget.TextView;

import net.oschina.app.R;

import heima3_2.cn.osc.base.BaseHolder;
import heima3_2.cn.osc.base.MyBaseAdapter;
import heima3_2.cn.osc.model.bean.CollectBean;
import heima3_2.cn.osc.utils.Global;

/**
 * Created by yaozhanlie on 2017/1/13.
 */

public class softHolder extends BaseHolder<CollectBean.FavoriteBean> {


    private TextView mTextView;

    public softHolder(Context context, ViewGroup parent, MyBaseAdapter<CollectBean.FavoriteBean> adapter, int position, CollectBean.FavoriteBean bean) {
        super(context, parent, adapter, position, bean);
    }

    @Override
    public View onCreateView(Context context, ViewGroup parent, int position, CollectBean.FavoriteBean bean) {
        View view = Global.inflats(R.layout.user_collect_item);
        mTextView = (TextView) view.findViewById(R.id.tv_user_collect);
        return view;
    }

    @Override
    protected void onRefreshView(CollectBean.FavoriteBean bean, int position) {
        mTextView.setText(bean.getTitle()+"1111");
    }
}


